package com.yuw.threaddemo1;

public class MyThreadOne extends Thread {

	@Override
	public void run() {
		// 多线程业务逻辑处理
		for (int i = 0; i < 20; i++) {
			System.out.println(Thread.currentThread().getName() + ":" + i);
			// 休眠500ms
			try {
				sleep(300);
			} catch (InterruptedException e) {
				// 异常处理
				e.printStackTrace();
			}
		}

	}

	public MyThreadOne() {
		super();
	}

	public MyThreadOne(String name) {
		super(name);
	}

}
